<?
$str = "date: ".date("Y.m.d H:i");

echo hash("SHA256",$str, false); //"<script> alert('$str');</script>"; 

?>